//
//  TemplateManageModel.m
//  YuTang
//
//  Created by 葛悦彣 on 2024/7/16.
//

#import "TemplateManageModel.h"

@implementation TemplateManageModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"ID":@[@"id"],
             @"Description":@[@"description"],
    };
}

- (CGFloat)DescriptionH{
    if(_DescriptionH == 0){
        _DescriptionH = [DTKTool textWithtitle:self.Description andSize:CGSizeMake(kwt(331), 10000) andFout:kFont(15)].height;
        if(_DescriptionH <= kwt(15)){
            _DescriptionH = kwt(15);
        }
    }
    return _DescriptionH;
}

- (CGFloat)CellH{
    return kwt(10 + 48 + 65) + self.DescriptionH;
}
@end
